package com.boarsoft.boar.sys.entity;

import java.util.HashSet;
import java.util.Set;

@SuppressWarnings("serial")
public class SysFunc implements java.io.Serializable {
	public static final short STATUS_NOUSE = 0;
	public static final short STATUS_INUSE = 1;

	private String code; // 角色ID
	private String type; // 分类
	private String name; // 功能编码
	private String uri; // 地址
	private int no; // 排序用序号
	private short status; // 0未启用，1启用
	private String memo;

	private Set<SysRole> roles = new HashSet<SysRole>();

	public SysFunc() {
	}

	public SysFunc(String code, String type, String name, String uri, short status, String memo) {
		this.code = code;
		this.type = type;
		this.name = name;
		this.uri = uri;
		this.status = status;
		this.memo = memo;
	}

	// ----------------------

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Set<SysRole> getRoles() {
		return roles;
	}

	public void setRoles(Set<SysRole> roles) {
		this.roles = roles;
	}

	public int getNo() {
		return no;
	}

	public void setNo(int no) {
		this.no = no;
	}
}